﻿@{
    ViewBag.Title = "List";
    Layout = "~/Views/Shared/layoutCommon.cshtml";
}


<section class="content-header">
    <h1>
        消息管理
        <small></small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i>主页</a></li>
        <li class="active">消息管理</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header">
                    <button type="button" class="btn btn-success btn-sm" id="btnAdd">添加消息</button>
                    <h3 class="box-title"></h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover body-table-head">
                        <thead>
                            <tr>
                                <th>
                                    消息标题
                                </th>
                                <th>
                                    消息明细
                                </th>
                                <th>
                                    消息类型
                                </th>
                                <th>
                                    消息来源
                                </th>
                                <th>
                                    消息简介
                                </th>
                                <th>
                                    操作人ID
                                </th>
                                <th>
                                    是否发送
                                </th>
                                <th>
                                    发送时间
                                </th>
                                <th>
                                    创建日期
                                </th>
                            </tr>
                        </thead>
                        <tbody id="dataView"></tbody>
                    </table>
                </div>
                <div class="no-data" id="nodata" style="display:none;">
                    <div class="img-box"></div>
                    <div class="text">暂无数据</div>
                </div>
                <div class="box-footer clearfix ">


                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
        </div>

    </div>
</section>
@section scriptsBottom{
    <script type="text/javascript">
        $(document).ready(function () {
            search();
            $("#btnAdd").click(function () {
            });
        });
        //查询
        function search() {
            //查询列表
            $.ajax({
                url: @Url.Action("Message", "PartialListDataView");,
                type: 'POST',
                dataType: "json",
                success: function (data) {
                    document.getElementById('dataView').innerHTML = data;
                }
            });
        }
    </script>
}
